package com.itgaohe.controller;


import com.itgaohe.service.ShopTypeService;
import com.itgaohe.utils.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/shop-type")
@Tag(name = "商店类型管理", description = "用户相关操作")
public class ShopTypeController {
    @Autowired
    private ShopTypeService shopTypeService;

    //查看商铺类型
    @Operation(summary = "查看商铺类型")
    @GetMapping("/list")
    public Result list() {
        return Result.ok(shopTypeService.list());
    }


}
